package com.itheima.patterns.structuralpattern.Flyweight.jdk;

public class JDKDemo {
    public static void main(String[] args) {
        Integer i1 = 127;
        Integer i2 = 127;
        System.out.println("i1和i2是否为同一个对象？"+(i1==i2));   //true
    
        Integer i3 = 128;
        Integer i4 = 128;
        System.out.println("i3和i4是否为同一个对象？"+(i3==i4));   //false
    }
}